home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cinema Studio: Frank Herrmann
/
Cinema Studio - Frank Herrmann.iso
/
tools
/
pbm
/
source
/
hpcdtoppm-0.6.lha
/
hpcdtoppm.0.6
/
hpcdtoppm.manpage
< prev
next >
Wrap
Text File
|
1994-05-03
|
14KB
|
397 lines
hpcdtoppm(1L) Misc. Reference Manual Pages hpcdtoppm(1L)
NNNNAAAAMMMMEEEE
hpcdtoppm - convert a Photo-CD file into a portable bitmap
file
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
hhhhppppccccddddttttooooppppppppmmmm _i_n_f_i_l_e [----aaaa] [{----CCCC|----0000|----OOOOvvvveeeerrrrvvvviiiieeeewwww _f_i_l_e _o_p_t] [----cccc0000] [ ----
cccc----] [----cccc++++] [----ccccrrrroooopppp] [----dddd] [----ddddppppiiii _f] [----eeeeppppssss] [----eeeeppppssssdddd] [----eeeeppppssssgggg] [----ffffaaaakkkk
_s_c_a_l_e] [----hhhhoooorrrriiii] [----iiii] [----llll] [----mmmm] [----nnnn] [----ppppbbbb _p_o_s] [---- ppppggggmmmm] [ ---- pppphhhh
_h_e_i_g_h_t] [ ---- ppppllll _p_o_s] [----ppppoooossss] [----ppppppppmmmm] [----ppppssss] [----ppppssssdddd] [----ppppssssgggg] [----ppppwwww
_w_i_d_t_h] [----rrrr] [----rrrreeeepppp] [----SSSS _l_o_n_g _s_h_o_r_t] [----ssss] [----vvvveeeerrrrtttt] [----xxxx] [---- yyyycccccccc]
[ ----1111|----BBBBaaaasssseeee////11116666 |-_1_2_8_x_1_9_2] [----2222|----BBBBaaaasssseeee////4444 |-_2_5_6_x_3_8_4] [----3333|----BBBBaaaasssseeee |-
_5_1_2_x_7_6_8] [----4444|----4444BBBBaaaasssseeee |-_1_0_2_4_x_1_5_3_6] [----5555|----11116666BBBBaaaasssseeee |-_2_0_4_8_x_3_0_7_2] [----
6666|----66664444BBBBaaaasssseeee |-_4_0_9_6_x_6_1_4_4] [_o_u_t_f_i_l_e]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This program accepts Photo-CD image or overview file data
from the specified input file, _i_n_f_i_l_e (or, if the resolution
is lower than 64Base and the file argument is specified as ----
, from standard input), and writes either Portable Bitmap
Format or POSTSCRIPT to the specified output file (or to
standard output if no file is specified).
On a standard Photo-CD, image files appear in
_p_h_o_t_o__c_d/_i_m_a_g_e_s, where they appear in files with names of
the form img_n_n_n_n._p_c_d, where _n_n_n_n is a 4-digit-number. The
overview file appears in _p_h_o_t_o__c_d/_o_v_e_r_v_i_e_w._p_c_d.
Photo-CD images are stored using as many as 6 different
resolutions:
Format Resolution
------ ----------
64Base 4096x6144 (ProPhotoCD only)
16Base 2048x3072
4Base 1024x1536
Base 512x768
Base/4 256x384
Base/16 128x192
The overview file employs Base/16 format.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
Invoking _h_p_c_d_t_o_p_p_m without arguments produces a list of
default values. Note that you can supply only one size
option.
----aaaa Automatically determine image orientation (this option
is experimental, and does not work for overview files).
{----CCCC | ----0000 | ----OOOOvvvveeeerrrrvvvviiiieeeewwww | ----OOOO } _f_i_l_e _o_p_t
Extract all images from an overview file. The manda-
tory _f_i_l_e argument is the name of a _p_p_m file; output
files are named _f_i_l_e_n_n_n_n, where _n_n_n_n is a 4-digit
Sun Microsystems Last change: 3 March 1994 1
hpcdtoppm(1L) Misc. Reference Manual Pages hpcdtoppm(1L)
number. Overview images are extracted in their origi-
nal Base/16 format. The value of _o_p_t determines the
orientation of the contact sheet image; recognized
values are:
nnnn Do not rotate the image.
llll Rotate the picture counter-clockwise (portrait
mode).
rrrr Rotate the picture clockwise (portrait mode).
----cccc0000 Do not correct (brighten or darken) the image.
----cccc---- Darken the image.
----cccc++++ Brighten the image.
----ccccrrrroooopppp
Cut off the black frame which sometimes appears at the
image borders.
----dddd Show only the decompressed difference rather than the
complete image (applicable only to 4Base and 16Base
images).
----ddddppppiiii rrrreeeessss
Set the printer resolution to _r_e_s for dithered
POSTSCRIPT images.
----eeeeppppssss Write a RGB Encapsulated POSTSCRIPT color image.
----eeeeppppssssdddd
Write a Floyd-Steinberg dithered image in Encapsulated
POSTSCRIPT.
----eeeeppppssssgggg
Write a grayscale image in Encapsulated POSTSCRIPT.
----ffffaaaakkkk ssssccccaaaalllleeee
Set the scaling factor for dithered POSTSCRIPT images
to _s_c_a_l_e.
----hhhhoooorrrriiii
Flip the image horizontally.
----iiii Send information from an image file header to standard
error.
----llll Rotate the picture counter-clockwise (portrait mode).
---- mmmm Write messages about the phases of decoding to
Sun Microsystems Last change: 3 March 1994 2
hpcdtoppm(1L) Misc. Reference Manual Pages hpcdtoppm(1L)
standard error.
----nnnn Do not rotate the image.
----ppppbbbb ppppoooossss
Set the bottom position of the POSTSCRIPT image to _p_o_s.
----ppppggggmmmm Write a _p_g_m (grayscale) image.
----pppphhhh hhhheeeeiiiigggghhhhtttt
Set the height of the POSTSCRIPT image to _h_e_i_g_h_t.
----ppppllll ppppoooossss
Set the leftmost position of the POSTSCRIPT image to
_p_o_s.
----ppppoooossss Print the relative starting position of the data for
the current resolution.
----ppppppppmmmm Write a _p_p_m RGB (color) image.
----ppppssss Write a RGB POSTSCRIPT color image.
----ppppssssdddd Write a Floyd-Steinberg dithered image in POSTSCRIPT.
----ppppssssgggg Write a POSTSCRIPT grayscale image.
----ppppwwww wwwwiiiiddddtttthhhh
Set the width of the POSTSCRIPT image to _w_i_d_t_h.
----rrrr Rotate the picture clockwise (portrait mode).
----rrrreeeepppp Try to jump over reading errors in the Huffman code.
----SSSS lllloooonnnngggg sssshhhhoooorrrrtttt
Cut out a subrectangle with boundaries defined by the
values:
_l_o_n_g For the longer side of the image.
_s_h_o_r_t
For the shorter side of the image.
where _l_o_n_g and _s_h_o_r_t take one of two forms:
aaaa----bbbb Cut from position _a to position _b.
aaaa++++bbbb Starting at offset _a, cut a length of _b.
and where _a and _b are either integers representing
pixel locations, or floating point values over the
range [0.0 ... 1.0], representing the fraction of the
Sun Microsystems Last change: 3 March 1994 3
hpcdtoppm(1L) Misc. Reference Manual Pages hpcdtoppm(1L)
length of a side.
----ssss Apply a simple sharpness operator to the luminosity
channel.
----vvvveeeerrrrtttt
Flip the image vertically.
----xxxx Overskip Mode (applicable to Base/16, Base/4, Base and
4Base). In Photo-CD images the luminosity channel is
stored in full resolution, the two chromaticity chan-
nels are stored in half resolution only and have to be
interpolated. In Overskip Mode, the chromaticity chan-
nels of the next higher resolution are taken instead of
interpolating. To see the difference, generate one _p_p_m
with and one _p_p_m without this flag. Use _p_n_m_a_r_i_t_h(1L)
to generate the difference image of these two images.
Call _p_p_m_h_i_s_t(1L) for this difference or show it with
_x_v(1L) (push the HHHHiiiissssttttEEEEqqqq button in the color editor).
----yyyycccccccc Write the image in _p_p_m YCC format.
----1111|----BBBBaaaasssseeee////11116666|----111122228888xxxx111199992222
Extract the Base/16 image.
----2222 |||| ----BBBBaaaasssseeee////4444 |||| ----222255556666xxxx333388884444
Extract the Base/4 image.
----3333 |||| ----BBBBaaaasssseeee |||| ----555511112222xxxx777766668888
Extract the Base image.
----4444 |||| ----4444BBBBaaaasssseeee |||| ----1111000022224444xxxx1111555533336666
Extract the 4Base image.
----5555 |||| ----11116666BBBBaaaasssseeee |||| ----2222000044448888xxxx3333000077772222
Extract the 16Base image.
----6666 |||| ----66664444BBBBaaaasssseeee |||| ----4444000099996666xxxx6666111144444444
Extract the 64Base image. This resolution can be
extracted from ProPhotoCD images only. The path of the
64Base extension files is derived from the path to the
image file. This means that it doesn't work on stdin an
the directory structure must be the very same as on the
ProPhotoCD.
PPPPOOOOSSSSTTTTSSSSCCCCRRRRIIIIPPPPTTTT OOOOUUUUTTTTPPPPUUUUTTTT
For POSTSCRIPT output (options ----ppppssss, ----eeeeppppssss, ----ppppssssgggg, ----eeeeppppssssgggg, ----ppppssssdddd,
---- eeeeppppssssgggg) you can define both the resolution and placement of
the image. Both size and position are specified in points
(1/72 inch).
Sun Microsystems Last change: 3 March 1994 4
hpcdtoppm(1L) Misc. Reference Manual Pages hpcdtoppm(1L)
The position of the image (where the origin is assumed to be
at the lower left corner of the page) is controlled by the ----
ppppllll and ----ppppbbbb options (applicable at all resolutions).
The size of color and grayscale images is changed with the ----
ppppwwww and ----pppphhhh options. Every image pixel is mapped onto one
POSTSCRIPT pixel.
There are three modes of control for dithered POSTSCRIPT:
Image size
(----ppppwwww and ----pppphhhh)
Printer resolution
(----ddddppppiiii)
Scaling factor
(----ffffaaaakkkk)
These three factors are interdependent, hence no more then
two can be specified simultaneously. Using ----ddddppppiiii and the ----
ppppwwww/----pppphhhh options together often yields pleasing results. Even
using the default values for these options will produce
results differing from those obtained without use of the
options.
BBBBUUUUGGGGSSSS
The program ignores read protection.
The ----iiii option is not working correctly.
Available information obout the Photo-CD format is vague;
this program was developed by trial-and-error after staring
at hex-dumps. Please send bugs reports and patches to the
author.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
pnmarith(1L), ppm(5L), ppmhist(1L), ppmquant(1L),
ppmtopgm(1L), ppmtorgb3(1L), xv(1L)
VVVVEEEERRRRSSSSIIIIOOOONNNN
The name _h_p_c_d_t_o_p_p_m stands for "Hadmut's pcdtoppm," to make
it distinguishable in the event that someone else is build-
ing a similar application and naming it _p_c_d_t_o_p_p_m. This is
version 0.6.
AAAAUUUUTTTTHHHHOOOORRRR
Copyright (c) 1992, 1993, 1994 by Hadmut Danisch
(danisch@ira.uka.de). This software is not public domain.
Permission to use and distribute this software and its docu-
mentation for noncommercial use and without fee is hereby
granted, provided that the above copyright notice appear in
Sun Microsystems Last change: 3 March 1994 5
hpcdtoppm(1L) Misc. Reference Manual Pages hpcdtoppm(1L)
all copies and that both that copyright notice and this per-
mission notice appear in supporting documentation. This
software may not be sold or used for profit-making activi-
ties.
Manual page extensively modified by R. P. C. Rodgers
(rodgers@nlm.nih.gov).
Sun Microsystems Last change: 3 March 1994 6